import logo from './logo.png'
import './style.less'

const CompanyAvatar = (props: any) => {
  return (
    <>
      {props.iconurl && <img className="block w-70px h-74px" src={props.iconurl} alt="" />}
      {!props.iconurl && props.company_sname && <div className="company-avatar-text">{props.company_sname}</div>}
      {!props.iconurl && !props.company_sname && <img className="block w-70px" src={logo} alt="" />}
    </>
  )
}

export default CompanyAvatar
